Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 2 - Control Manager Reference / Control Manager Types and Constants


Bevel Button Menu Constants

NEW WITH THE APPEARANCE MANAGER

You can pass one or more of these constants in the initialValue parameter of NewControl to create a bevel button with a menu of a certain behavior. Bevel buttons with menus have two values: the value of the button and the value of the menu. You can specify the direction of the pop-up menu arrow (down or right) by using the kControlBevelButtonMenuOnRight bevel button variant.

enum{
   kControlBehaviorCommandMenu    = 0x2000, 
   kControlBehaviorMultiValueMenu = 0x4000 
}; 

Constant descriptions

kControlBehaviorCommandMenu
If this bit is set, the menu contains commands, not choices, and should not be marked with a checkmark. If this bit is set, it overrides the kControlBehaviorMultiValueMenu bit. This constant is only available with Appearance 1.0.1 and later.
kControlBehaviorMultiValueMenu
If this bit is set, the menus are multi-valued. The bevel button does not maintain the menu value as it normally would (requiring that only one item is selected at a time). This allows the user to toggle entries in a menu and have multiple items checked. In this mode, the menu value accessed with the kControlMenuLastValueTag will return the value of the last menu item selected.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998